//
//  TopViewModel.h
//  QuickCure
//
//  Created by 源 何 on 16/9/13.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TopViewModel : NSObject

//天气
@property (nonatomic, copy) NSString *weather;

//天气图片
@property (nonatomic, copy) NSString *dayPictureUrl;

//当天日期
@property (nonatomic, copy) NSString *date;

//温度
@property (nonatomic, copy) NSString *temperature;

//当前城市
@property (nonatomic, copy) NSString *currentCity;

//字典转模型
+ (instancetype)modelWithDict:(NSDictionary *)dict;

//获取网络数据(异步),需要得到自定义对象的数组(block)
+ (void)topViewListWithSuccess:(void(^)(NSArray<TopViewModel *> *))successBlock error:(void(^)())errorBlock location:(NSString *)location;

@end
